package com.subaiwang.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Plastic {
    private long id;
    private String brand;
    private String platz;
    private String wansuda;
    private String platzlink;
    private String wansudalink;
    private Integer type;
    private String classValue;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "platz")
    public String getPlatz() {
        return platz;
    }

    public void setPlatz(String platz) {
        this.platz = platz;
    }

    @Basic
    @Column(name = "wansuda")
    public String getWansuda() {
        return wansuda;
    }

    public void setWansuda(String wansuda) {
        this.wansuda = wansuda;
    }

    @Basic
    @Column(name = "platzlink")
    public String getPlatzlink() {
        return platzlink;
    }

    public void setPlatzlink(String platzlink) {
        this.platzlink = platzlink;
    }

    @Basic
    @Column(name = "wansudalink")
    public String getWansudalink() {
        return wansudalink;
    }

    public void setWansudalink(String wansudalink) {
        this.wansudalink = wansudalink;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @Column(name = "classValue")
    public String getClassValue() {
        return classValue;
    }

    public void setClassValue(String classValue) {
        this.classValue = classValue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Plastic plastic = (Plastic) o;

        if (id != plastic.id) return false;
        if (brand != null ? !brand.equals(plastic.brand) : plastic.brand != null) return false;
        if (platz != null ? !platz.equals(plastic.platz) : plastic.platz != null) return false;
        if (wansuda != null ? !wansuda.equals(plastic.wansuda) : plastic.wansuda != null) return false;
        if (platzlink != null ? !platzlink.equals(plastic.platzlink) : plastic.platzlink != null) return false;
        if (wansudalink != null ? !wansudalink.equals(plastic.wansudalink) : plastic.wansudalink != null) return false;
        if (type != null ? !type.equals(plastic.type) : plastic.type != null) return false;
        if (classValue != null ? !classValue.equals(plastic.classValue) : plastic.classValue != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (brand != null ? brand.hashCode() : 0);
        result = 31 * result + (platz != null ? platz.hashCode() : 0);
        result = 31 * result + (wansuda != null ? wansuda.hashCode() : 0);
        result = 31 * result + (platzlink != null ? platzlink.hashCode() : 0);
        result = 31 * result + (wansudalink != null ? wansudalink.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (classValue != null ? classValue.hashCode() : 0);
        return result;
    }
}
